package com.explorex.infra.puma.gateway.netty.common.utils;

import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;

import static com.explorex.infra.puma.gateway.netty.common.ConstValue.CHINA_ZONEID;


/**
 * @author: JacceYang
 * @createTime: 2022/11/16 14:04
 * @description:
 */
public class TimeUtils {

    public static String getUTCZoneTime(){
        ZonedDateTime zonedDateTime = ZonedDateTime.of(LocalDateTime.now(), CHINA_ZONEID);
        ZonedDateTime utcDate = zonedDateTime.withZoneSameInstant(ZoneOffset.UTC);
        return utcDate.toString();
    }
}
